package de.hach.manno.webservice;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;

/**
 * <playsFor id='1' playerId='1' clubId='2' start='2006-06-01 00:00:00' end=''
 * timestamp='2012-06-14 19:43:38'/>
 * 
 * @author hanspeter
 * 
 */
@Root
public class PlaysFor {

	@Attribute
	private int id;

	@Attribute
	private int playerId;

	@Attribute
	private int clubId;

	@Attribute
	private String start;

	@Attribute
	private String end;

	@Attribute
	private String timestamp;

	public int getId() {
		return id;
	}

	public int getPlayerId() {
		return playerId;
	}

	public int getClubId() {
		return clubId;
	}

	public String getStart() {
		return start;
	}

	public String getEnd() {
		return end;
	}

	public String getTimestamp() {
		return timestamp;
	}

	@Override
	public String toString() {
		return "PlaysFor [" + this.id + " (" + this.timestamp + ")] "
				+ this.playerId + " " + this.clubId;
	}
}
